<div class="row-fluid">
    <div class="span6">
        <table cellspacing="0" border="0" class="dTable dataTable" cellpading="0" id="list_chapter_log">
            <thead align="left">
                <tr role="row">
                    <th>
                        Name
                    </th>
                    <th style="width: 120px;">
                        Chapter
                    </th>
                    <th style="width: 100px;">
                        Created date
                    </th>
                    <th style="width: 15px;">

                    </th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($chapter_log as $c): ?>
                    <tr>
                        <td>
                            <a href="<?php echo base_url() ?>novel/edit/<?= $c['novelId'] ?>">
                                <?= $c['name'] ?>
                            </a>
                        </td>
                        <td>
                            <a href="<?php echo base_url() ?>novel/edit/<?= $c['novelId'] ?>">
                                chapter <?= $c['chapter'] ?>
                            </a>
                        </td>
                        <td>
                            <?= date('d M Y', $c['created']) ?>
                        </td>
                        <td>
                            <a href="#" class="pushChapter" onclick="return dashboard.pushChapter(<?= $c['novelId'] ?>, <?= $c['chapter'] ?>)"><i class="icon-plus"></i></a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>
    <div clas="span6">

    </div>
</div>
<div class="divider"><div><span></span></div></div>
<div class="row-fluid">
    <div class="span12">
        <?php for ($i = 1; $i <= 6; $i++): ?>
            <?php if ($i % 3 == 1) { ?>
                <div class="row-fluid">
                <?php } ?>
                <div class="span4">
                    <div class="widget">
                        <div class="wTitle">
                            <h5 class="pull-left">Block <?= $i ?></h5>
                            <div class="iconField pull-right" style="margin: 5px 5px 0 0">
                                <div class="noSearch">
                                    <select class="chosen">
                                        <option value="0">Please select one</option>
                                        <?php foreach ($cats as $cat): ?>
                                            <option value="<?= $cat->id ?>"><?= $cat->name ?></option>
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                            </div>    
                        </div>
                    </div>
                </div>
                <?php if ($i % 3 == 0) { ?>
                </div>
            <?php } ?>        
        <?php endfor; ?>
        <div class="row-fluid">
            <div class="span12 text-center">
                <input id="saveHomeCate" class="button sButton bOlive ui-wizard-content ui-formwizard-button" type="button" value="submit">
            </div>
        </div>
    </div>
</div>
<div class="divider"><div><span></span></div></div>